package com.tbit.uqbike.service.business;

import com.tbit.uqbike.object.pojo.MachineCleanLog;
import com.tbit.common.entity.pojo.vo.DateResult;
import com.tbit.uqbike.object.pojo.statistics.ExportMachineCleanLog;
import com.tbit.uqbike.object.pojo.statistics.ExportPowerLog;

import java.util.List;

/**
 * 清洁车日志(MachineCleanLog)表服务接口
 *
 * @author jing
 * @since 2021-01-11 13:48:31
 */
public interface MachineCleanLogService {

    /**
     * 通过ID查询单条数据
     *
     * @param machineCleanLogId 主键
     * @return 实例对象
     */
    MachineCleanLog queryById(Integer machineCleanLogId);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit  查询条数
     * @return 对象列表
     */
    List<MachineCleanLog> queryAllByLimit(int offset, int limit);

    /**
     * @param machineCleanLog
     * @return java.util.List<com.tbit.uqbike.object.statistics.DateResult>
     * @Description: 获取清洁车数据
     * @createDate 2021/1/11 14:07
     */
    List<DateResult> statisticsByTime(MachineCleanLog machineCleanLog);

    List<MachineCleanLog> queryPage(MachineCleanLog machineCleanLog);

    List<ExportMachineCleanLog> exportByTime(MachineCleanLog machineCleanLog);

    List<ExportPowerLog> getById(MachineCleanLog machineCleanLog);

    /**
     * 新增数据
     *
     * @param machineCleanLog 实例对象
     * @return 实例对象
     */
    MachineCleanLog insert(MachineCleanLog machineCleanLog);

    /**
     * 修改数据
     *
     * @param machineCleanLog 实例对象
     * @return 实例对象
     */
    MachineCleanLog update(MachineCleanLog machineCleanLog);

    /**
     * 通过主键删除数据
     *
     * @param machineCleanLogId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer machineCleanLogId);


}